package com.sg.model.base.po;

import com.baomidou.mybatisplus.annotation.*;
import com.sg.framework.common.annotations.LikeFlag;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import lombok.experimental.Accessors;

import com.sg.framework.common.po.BaseEntity;
import jakarta.validation.constraints.NotNull;

import java.io.Serial;
import java.io.Serializable;
import java.io.Serial;
import java.util.Date;

/**
 * 1、主表，存档前提判断，无新增职务关联关系 当前岗位才可存档；2、非必选。有空间，有应用
 *
 * @author xxx
 */
@Data
@Accessors(chain = true)
@TableName("oms_org_station")  //1-3-07岗位表（07）
public class Station implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;


    /**
     * 岗位ID
     */
    @TableId(value = "station_id", type = IdType.ASSIGN_UUID)
    @NotNull(message = "stationId不能为空")
    private String stationId;
    /**
     * 岗位类型ID
     */
    @TableField(value = "station_type_id")
    @NotNull(message = "岗位类型ID不能为空")
    @Schema(description = "岗位类型ID")
    private String stationTypeId;
    /**
     * 职位ID
     */
    @TableField(value = "post_id")
    @Schema(description = "职位ID")
    private String postId;
    /**
     * 岗位编号
     */
    @TableField(value = "station_number")
    @NotNull(message = "岗位编号不能为空")
    @Schema(description = "岗位编号")
    private String stationNumber;
    /**
     * 岗位名称
     */
    @TableField(value = "station_name")
    @NotNull(message = "岗位名称不能为空")
    @Schema(description = "岗位名称")
    @LikeFlag(likeType = "LIKE")
    private String stationName;
    /**
     * 岗位职责概述
     */
    @TableField(value = "station_duty_desc")
    @Schema(description = "岗位职责概述")
    private String stationDutyDesc;
    /**
     * 岗位目标概述
     */
    @TableField(value = "station_target_desc")
    @Schema(description = "岗位目标概述")
    private String stationTargetDesc;
    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @TableField(value = "subject_life_cycle")
    @NotNull(message = "主体生命周期不能为空")
    @Schema(description = "主体生命周期")
    private String subjectLifeCycle;
    /**
     * 是否存档 TRUE:是 FALSE:否
     */
    @TableField(value = "is_archive")
    @NotNull(message = "是否存档不能为空")
    @Schema(description = "是否存档")
    private String isArchive;
    /**
     * 操作人就职记录ID
     */
    @TableField(value = "operation_induction_id")
    @NotNull(message = "操作人就职记录ID不能为空")
    @Schema(description = "操作人就职记录ID")
    private String operationInductionId;
    /**
     * 创建人就职记录ID
     */
    @TableField(value = "create_induction_id")
    @NotNull(message = "创建人就职记录ID不能为空")
    @Schema(description = "创建人就职记录ID")
    private String createInductionId;
    /**
     * 发布人就职记录ID
     */
    @TableField(value = "release_induction_id")
    @Schema(description = "发布人就职记录ID")
    private String releaseInductionId;
    /**
     * 存档人就职记录ID
     */
    @TableField(value = "archive_induction_id")
    @Schema(description = "存档人就职记录ID")
    private String archiveInductionId;
    /**
     * 操作时间
     */
    @TableField(value = "operate_time")
    @NotNull(message = "操作时间不能为空")
    @Schema(description = "操作时间")
    private Date operateTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @NotNull(message = "创建时间不能为空")
    @Schema(description = "创建时间")
    private Date createTime;
    /**
     * 发布时间
     */
    @TableField(value = "release_time")
    @Schema(description = "发布时间")
    private Date releaseTime;
    /**
     * 存档时间
     */
    @TableField(value = "archive_time")
    @Schema(description = "存档时间")
    private Date archiveTime;
    /**
     * 是否作废 TRUE:是 FALSE:否
     */
    @TableField(value = "is_valid")
    @NotNull(message = "是否作废不能为空")
    @Schema(description = "是否作废")
    private String isValid;
    /**
     * 创建于空间ID
     */
    @TableField(value = "space_id")
    @NotNull(message = "创建于空间ID不能为空")
    @Schema(description = "创建于空间ID")
    private String spaceId;
    /**
     * 创建于联盟应用ID
     */
    @TableField(value = "app_id")
    @NotNull(message = "创建于联盟应用ID不能为空")
    @Schema(description = "创建于联盟应用ID")
    private String appId;
}
